072e23cd2da6c2008012ca5861e76fef0cc2fdeb,OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java,BasicOpeningHourRule,setStartTime,#number#number#,281
Before Change
* @param position - position to add
*/
public void setStartTime(int s, int position) {
if (position > startTimes.length) {
throw new IllegalArgumentException("It is possible to only create 1 new " +
"position. Size=" + startTimes.length + ", position=" + position);
} else if (position == startTimes.length) {
startTimes = addValueToArray(startTimes, s);
endTimes = addValueToArray(endTimes, 0);
} else {
startTimes[position] = s;
After Change
* @param s - value
* @param position - position to add
*/
public void setStartTime(int s, int position) {
if (position == startTimes.size()) {
startTimes.add(s);
endTimes.add(0);
} else {
startTimes.set(position, s);